package inventory.mappers;

import inventory.entity.Notice;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import inventory.entity.Role;
import inventory.entity.po.NoticePo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sxt
 * @since 2019-11-06
 */
public interface NoticeMapper extends BaseMapper<Notice> {
    /**
     * 查询出所有的公告
     * @return
     */
    /**
     * 根据launcher 即userId
     * 查询 用户的权限
     */
    Role queryRoleByLauncher(String userId);


    void updateNoticeById(@Param("noticeId") String noticeId, @Param("noticeContext")String noticeContext);

        List<NoticePo> selectNoticeByLauncherRoleId(String launcherRoleId);

    List<NoticePo> selectAllNoticePo();
}
